package com.gxa.controller;

import com.gxa.config.FileProperties;
import com.gxa.utils.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class UploadController {

    @Autowired
    private FileProperties fileProperties;

    public R upload(){

        if(fileProperties.getType().equals("local")){

        }else if(fileProperties.getType().equals("fastdfs")){

        }else if(fileProperties.getType().equals("yun")){
            //ftp 到云服务器
            //云服务上装nginx
            //唐若涵
        }else{

        }
        return null;
    }
}
